home *** CD-ROM | disk | FTP | other *** search
- currentScale = _parent._xscale;
- if(rollMode == "over")
- {
- if(start < end)
- {
- if(currentScale <= end + rate)
- {
- _parent._xscale += rate;
- _parent._yscale += rate;
- }
- else
- {
- stop();
- }
- }
- if(start > end)
- {
- if(currentScale >= end + rate)
- {
- _parent._xscale -= rate;
- _parent._yscale -= rate;
- }
- else
- {
- stop();
- }
- }
- }
- if(rollMode == "off")
- {
- if(end < start)
- {
- if(currentScale <= start + rate)
- {
- _parent._xscale += rate;
- _parent._yscale += rate;
- }
- else
- {
- stop();
- }
- }
- if(end > start)
- {
- if(currentscale >= start + rate)
- {
- _parent._xscale -= rate;
- _parent._yscale -= rate;
- }
- else
- {
- stop();
- }
- }
- }
-